{include file="public/toper" /}
<!-- 顶部开始 -->
<div class="container">
    <div class="logo"><a href="./index.html">珠宝小程序管理平台</a></div>
    <div class="left_open">
        <i title="展开左侧栏" class="iconfont">&#xe699;</i>
    </div>
    <ul class="layui-nav right" lay-filter="">
        <li class="layui-nav-item">
            <a href="javascript:;">{$Think.session.admin_user.store_name}</a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
                <dd><a class="logout_btn" href="javascript:void(0)">退出</a></dd>
            </dl>
        </li>
    </ul>

</div>
<!-- 顶部结束 -->


<!-- 中部开始 -->
<!-- 左侧菜单开始 -->
<div class="left-nav">
    <div id="side-nav">
        <ul id="nav">
            <li>
                <a href="javascript:;">
                    <i class="iconfont icon-mendianguanli"></i>
                    <cite>门店信息管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a _href="{:url('StoreInfo/index')}">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>门店信息</cite>
                        </a>
                    </li >
                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    <i class="iconfont icon-shangpin"></i>
                    <cite>商品管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a _href="{:url('Goods/goodsList')}">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>商品信息</cite>
                        </a>
                    </li >
                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    <i class="iconfont icon-dingdan"></i>
                    <cite>订单管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a _href="{:url('Order/orderList')}">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>订单信息</cite>
                        </a>
                    </li >
                </ul>
            </li>

            <li>
                <a href="javascript:;">
                    <i class="iconfont icon-jiesuan"></i>
                    <cite>结算中心</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a _href="{:url('Sett/index')}">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>申请结算</cite>
                        </a>
                    </li >
                    <li>
                        <a _href="{:url('Sett/index2')}">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>结算订单</cite>
                        </a>
                    </li >
                </ul>
            </li>

            <li>
                <a href="javascript:;">
                    <i class="iconfont icon-huiyuanqia"></i>
                    <cite>会员卡</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a _href="{:url('Offline/index')}">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>代售会员卡</cite>
                        </a>
                    </li >
                    <li>
                        <a _href="{:url('card/index')}">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>会员卡订单</cite>
                        </a>
                    </li >
                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    <i class="iconfont icon-tongji"></i>
                    <cite>统计管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a _href="{:url('Meter/index')}">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>订单统计</cite>
                        </a>
                    </li >
                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    <i class="iconfont">&#xe726;</i>
                    <cite>账号管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a _href="{:url('StoreInfo/account')}">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>账号信息</cite>
                        </a>
                    </li >
                </ul>
            </li>
        </ul>
    </div>
</div>
<!-- <div class="x-slide_left"></div> -->
<!-- 左侧菜单结束 -->
<!-- 右侧主体开始 -->
<div class="page-content">
    <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
        <ul class="layui-tab-title">
            <li class="home"><i class="layui-icon">&#xe68e;</i>我的桌面</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <iframe src="{:url('home')}" frameborder="0" scrolling="yes" class="x-iframe"></iframe>
            </div>
        </div>
    </div>
</div>
<div class="page-content-bg"></div>
<!-- 右侧主体结束 -->
<!-- 中部结束 -->
<!-- 底部开始 -->
<div class="footer">
    <div class="copyright">Copyright ©2018 admin v1.2 All Rights Reserved</div>
</div>
<!-- 底部结束 -->
<div class="page-content-bg"></div>
<!-- 右侧主体结束 -->
<!-- 中部结束 -->


<script type="text/javascript">
    layui.use(['layer', 'element','jquery','tree'], function(){
        var layer = layui.layer
            ,element = layui.element //导航的hover效果、二级菜单等功能，需要依赖element模块
            ,jq = layui.jquery

        //更新缓存
        jq('.update_cache').click(function(){
            loading = layer.load(2, {
                shade: [0.2,'#000'] //0.2透明度的白色背景
            });
            jq.getJSON('{:url("cache/update")}',function(data){
                if(data.code == 200){
                    layer.close(loading);
                    layer.msg(data.msg, {icon: 1, time: 1000}, function(){
                        location.reload();//do something
                    });
                }else{
                    layer.close(loading);
                    layer.msg(data.msg, {icon: 2, anim: 6, time: 1000});
                }
            });
        });

        //退出登陆
        jq('.logout_btn').click(function(){
            loading = layer.load(2, {
                shade: [0.2,'#000'] //0.2透明度的白色背景
            });
            jq.getJSON('{:url("login/logout")}',function(data){
                if(data.code == 200){
                    layer.close(loading);
                    layer.msg(data.msg, {icon: 1, time: 1000}, function(){
                        location.reload();//do something
                    });
                }else{
                    layer.close(loading);
                    layer.msg(data.msg, {icon: 2, anim: 6, time: 1000});
                }
            });
        });

    });
</script>
{include file="public/footer"/}